
java -jar hapsigntoolv2.jar sign -mode localjks -privatekey "OpenHarmony Application Release" -inputFile entry-default-unsigned.hap -outputFile entry-debug-signed.hap -keystore "OpenHarmony.p12" -keystorepasswd 123456 -keyaliaspasswd 123456 -signAlg SHA256withECDSA -profile "myApplication_ohos_Provision_debug.p7b" -certpath "OpenHarmonyApplication.pem"
for /f "delims=" %%i in ('hdc list targets') do set hasDevice=%%i
if %hasDevice% neq [Empty] (
    hdc shell param set const.product.developementmode 1
    hdc shell param set const.bms.allowenterprisebundle true
    hdc shell setenforce 0
)
pause
